<?php
/**
* @package Scribble
*/
use Buan\UrlCommand;
?>

<a class="task task-create" href="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'page', 'create')); ?>">Create A Page</a>

<div class="hr"><hr /></div>

<h3>Filter results</h3>
<form method="get" action="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'page', 'comments')); ?>">
	<dl>
		<dt>Status</dt>
		<dd>
			<label><input type="radio" class="radio" name="s" value="" <?php echo $filter->isvisible===NULL ? 'checked="checked"' : ''; ?>> Any</label>
			<label><input type="radio" class="radio" name="s" value="1"<?php echo $filter->isvisible===1 ? 'checked="checked"' : ''; ?>> Visible</label>
			<label><input type="radio" class="radio" name="s" value="0"<?php echo $filter->isvisible===0 ? 'checked="checked"' : ''; ?>> Hidden</label>
		</dd>
	</dl>

	<dl>
		<dt>Page ID</dt>
		<dd>
			<input type="text" name="pageid" value="<?php $this->html->e($filter->page_id); ?>" />
		</dd>
	</dl>

	<dl>
		<dt>Keywords</dt>
		<dd>
			<input type="text" name="q" value="<?php $this->html->e($filter->q); ?>" />
		</dd>
	</dl>

	<dl>
		<dt>Date range</dt>
		<dd>
			<input type="text" id="filter-df" name="df" value="<?php $this->html->e($filter->df); ?>" />
			<input type="text" id="filter-dt" name="dt" value="<?php $this->html->e($filter->dt); ?>" />
		</dd>
	</dl>

	<button class="apply" type="submit" name="btnapply" value="Apply">Apply</button>
	<button class="reset" type="reset" name="btnclear" value="Clear">Clear</button>
</form>